package com.jiazhong.boot.commons.bean.plus;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
// 定义是那张表
@TableName(value = "emp")
public class Emp implements Serializable {
    @TableId(value = "empno", type = IdType.AUTO)
    private Integer empNo; // emp_no
    @TableField(value = "ename")
    private String ename;
    private String job;
    private Integer deptNo;
    private Integer mgr;
    @TableField(value = "hiredate", fill = FieldFill.INSERT_UPDATE)
    private String hireDate;
    private Double sal;
    private Double comm;
    // 逻辑删除 存在是1，删除是0。（默认情况，1代表删除，0代表存在）
    // @TableLogic(value = "1",delval = "0")
    private Integer state;

    @TableField(exist = false)
    private Dept dept;
}
